package com.example.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.keygen.KeyGenerators;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@Accessors(chain = true)
@Table(value = "teacher", comment = "教师表")
public class Teacher {

    @Id(keyType = KeyType.Generator, value = KeyGenerators.flexId)
    @Column(value = "id", comment = "教师ID")
    private Long id;

    @Column(value = "name", comment = "姓名")
    private String name;

    @Column(value = "class_id", comment = "班级ID")
    private Long classId;

    @Column(value = "create_time", comment = "创建时间")
    private Date createTime;

    @Column(value = "is_del", comment = "是否删除")
    private int isDel;

}
